﻿using System.Collections.Generic;
using Rodunu.Movies.Services.Models.Netflix;
using Rodunu.Movies.Services.Models.Netflix.Attributes;

namespace Rodunu.Movies.Services.Models.Netflix
{
    public class TitleStates
    {
        private List<TitleState> _titles;

        [XPath("/title_states/title_state")]
        public List<TitleState> Titles
        {
            get { return _titles; }
            set { _titles = value; }
        }

        [XPath("/title_states/link[@rel='http://schemas.netflix.com/id']")]
        public Link TitleLink { get; set; }

        public TitleState this[int index]
        {
            get { return _titles[index]; }
        }
    }
}
